package com.zpl.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zpl.entity.BaseEntity;
import com.zpl.user.enums.Gender;
import com.zpl.user.enums.Role;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("user")
@ApiModel(value = "用户", description = "用户实体")
public class User extends BaseEntity {
    @ApiModelProperty(value = "用户名", required = true)
    private String username;
    @ApiModelProperty(value = "密码", required = true)
    private String password;
    @ApiModelProperty(value = "性别", required = true)
    private Gender gender;
    @ApiModelProperty(value = "电话号码", required = true)
    private String phone;
    @ApiModelProperty(value = "角色", required = true)
    private Role role;
}